<?php
/**
 * User: Jiawei
 * Date: 2017/7/29
 * Time: 10:06
 */

namespace App\Lib\WeApp\Api;

class ApiUrl{

	//get session_key and access_token by appid and secret
	const SESSION_KEY = 'https://api.weixin.qq.com/sns/jscode2session';
	const ACCESS_TOKEN = 'https://api.weixin.qq.com/cgi-bin/token';

	//get template from library
	const TEMPLATE_MSG_LIST_FORM_LIB = 'https://api.weixin.qq.com/cgi-bin/wxopen/template/library/list';
	const TEMPLATE_MSG_GET_FORM_LIB = 'https://api.weixin.qq.com/cgi-bin/wxopen/template/library/get';

	//manage the weapp's message template
	const TEMPLATE_MSG_ADD = 'https://api.weixin.qq.com/cgi-bin/wxopen/template/add';
	const TEMPLATE_MSG_LIST = 'https://api.weixin.qq.com/cgi-bin/wxopen/template/list';
	const TEMPLATE_MSG_DEL = 'https://api.weixin.qq.com/cgi-bin/wxopen/template/del';

	//send template message
	const TEMPLATE_MSG_SEND = 'https://api.weixin.qq.com/cgi-bin/message/template/send';
	// send mini template message
    const SUBSCRIBE_MSG_SEND = 'https://api.weixin.qq.com/cgi-bin/message/subscribe/send';

	//message in custom service
	const CUSTOM_MSG_SEND = 'https://api.weixin.qq.com/cgi-bin/message/custom/send';

	//get qrcode of weapp
	const GET_APP_CODE_A = 'https://api.weixin.qq.com/wxa/getwxacode';
	const GET_APP_CODE_B = 'https://api.weixin.qq.com/wxa/getwxacodeunlimit';
	const GET_QR_CODE_C = 'https://api.weixin.qq.com/cgi-bin/wxaapp/createwxaqrcode';

	//statistic
	const STATISTIC_ABOUT = 'https://api.weixin.qq.com/datacube/getweanalysisappiddailysummarytrend';
	const STATISTIC_VISIT_DAILY = 'https://api.weixin.qq.com/datacube/getweanalysisappiddailyvisittrend';
	const STATISTIC_VISIT_WEEKLY = 'https://api.weixin.qq.com/datacube/getweanalysisappidweeklyvisittrend';
	const STATISTIC_VISIT_MONTHLY = 'https://api.weixin.qq.com/datacube/getweanalysisappidmonthlyvisittrend';
	const STATISTIC_VISIT_DISTRIBUTION = 'https://api.weixin.qq.com/datacube/getweanalysisappidvisitdistribution';
	const STATISTIC_VISIT_RETAIN_DAILY = 'https://api.weixin.qq.com/datacube/getweanalysisappiddailyretaininfo';
	const STATISTIC_VISIT_RETAIN_WEEKLY = 'https://api.weixin.qq.com/datacube/getweanalysisappidweeklyretaininfo';
	const STATISTIC_VISIT_RETAIN_MONTHLY = 'https://api.weixin.qq.com/datacube/getweanalysisappidmonthlyretaininfo';
	const STATISTIC_VISIT_PAGE = 'https://api.weixin.qq.com/datacube/getweanalysisappidvisitpage';
	const STATISTIC_VISIT_USERS_FEATURE = 'https://api.weixin.qq.com/datacube/getweanalysisappiduserportrait';

	// 链接类
	const LINK_GEN_WX_A_SHORT_LINK = 'https://api.weixin.qq.com/wxa/genwxashortlink';
    const LINK_GEN_WX_A_URL_LINK = 'https://api.weixin.qq.com/wxa/generate_urllink';


    // 公众号类
    const MP_SERVICER_USER_INFO = 'https://api.weixin.qq.com/cgi-bin/user/info';
    const MP_SERVICER_JSSDK_TICKET = 'https://api.weixin.qq.com/cgi-bin/ticket/getticket';
    const MP_SERVICER_WITHPARA_QRCODE_CREATE = 'https://api.weixin.qq.com/cgi-bin/qrcode/create';
    const MP_SERVICER_MENU_CREATE = 'https://api.weixin.qq.com/cgi-bin/menu/create';
    const MP_SERVICER_ADD_MATERIAL = 'https://api.weixin.qq.com/cgi-bin/material/add_material';
    const MP_SERVICER_MEDIA_UPLOADIMG = 'https://api.weixin.qq.com/cgi-bin/media/uploadimg';
    const MP_SERVICER_DEL_MATERIAL = 'https://api.weixin.qq.com/cgi-bin/material/del_material';
    const MP_SERVICER_GET_MATERIAL = 'https://api.weixin.qq.com/cgi-bin/material/get_material';
    const MP_SERVICER_GET_GET_ARTICLE = 'https://api.weixin.qq.com/cgi-bin/freepublish/getarticle';
    const MP_SERVICER_FREEPUBLISH_BATCHGET = 'https://api.weixin.qq.com/cgi-bin/freepublish/batchget';
    const MP_SERVICER_FREEPUBLISH_DRAFT_ADD = 'https://api.weixin.qq.com/cgi-bin/draft/add';
    const MP_SERVICER_FREEPUBLISH_DRAFT_DELETE = 'https://api.weixin.qq.com/cgi-bin/draft/delete';
    const MP_SERVICER_FREEPUBLISH_DRAFT_UPDATE = 'https://api.weixin.qq.com/cgi-bin/draft/update';
    const MP_SERVICER_FREEPUBLISH_SUBMIT = 'https://api.weixin.qq.com/cgi-bin/freepublish/submit';
    const MP_SERVICER_FREEPUBLISH_DELETE = 'https://api.weixin.qq.com/cgi-bin/freepublish/delete';
    const MP_SERVICER_FREEPUBLISH_GET = 'https://api.weixin.qq.com/cgi-bin/freepublish/get';


    // 小程序发货信息管理
    const DELIVER_INFO_MANAGE_UPLOAD = 'https://api.weixin.qq.com/wxa/sec/order/upload_shipping_info';
    const DELIVER_INFO_MANAGE_GET_ORDER = 'https://api.weixin.qq.com/wxa/sec/order/get_order';
    const DELIVER_INFO_MANAGE_NEED = 'https://api.weixin.qq.com/wxa/sec/order/is_trade_managed';
}
